package shiyan;

public class Main6 {

	public static void main(String[] args) {
		//201521123114
		 String regEx= "^(-?\\d+)(\\.\\d+)?$";
		    String[] str={"-123.02","230","350sa"};
		    for(String s:str)
		    {
		        System.out.println(s.matches(regEx));
		    }
	}

}
